package org.sfgeeq.framework.bean;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.sfgeeq.framework.util.CastUtil;
import org.sfgeeq.framework.util.CollectionUtil;
import org.sfgeeq.framework.util.StringUtil;

/**
 * 请求参数对象
 *
 * @author huangyong
 * @since 1.0.0
 */
public class Param {
 private Map<String,Object> paramMap;

    public Param(Map<String, Object> paramMap) {
        this.paramMap = paramMap;
    }

    /**
     * 获取所有字段信息
     * @return
     */
    public Map<String, Object> getMap() {
        return paramMap;
    }

    /**
     * 根据参数名获取long型参数值
     * @param name
     * @return
     */
    public long getLong(String name){
        return CastUtil.castLong(paramMap.get(name));
    }

}
